//
// Created by user on 2022/3/28.
//

#include "content.h"

using namespace std;

int random_int(const int& n) {
    return (long long) rand() * rand() % n;
}

void generator() {
    int t, n, m;
    int opt, l, r;

    t = random_int(1) + 1;

    cout << t << endl;
    while (t--) {
        n = random_int(100000) + 1;
        cout << n << endl;
        for (int i = 0; i < n; i++) {
            cout << random_int(4) + 1 << ' ';
        }
        cout << endl;

        m = random_int(100000) + 1;
        cout << m << endl;
        while (m--) {
            opt = random_int(2) + 1;
            l = random_int(n) + 1;
            r = random_int(n) + 1;
            if (l > r) swap(l, r);
            cout << opt << ' ' << l << ' ' << r << endl;
        }
    }
}